﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebServisArayuz.Master" AutoEventWireup="true" CodeBehind="SFTuzelKisiRehinAlacakliIslemleri.aspx.cs" Inherits="TakbisBilgiSorgu_v1.SFTuzelKisiRehinAlacakliIslemleri" EnableEventValidation = "false"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="js/MyScript/TuzelKisiIslemleri.js" type="text/javascript"></script>
 </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div class="sayfa_adi">
        Tüzel Kişi / Rehin Alacakli İşlemleri
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <form  id="form1" runat="server">
   <div id="divTuzelKisiSorgulamaKriter" runat="server" class="DivTasinmazIslemleriBloklar">
        <div class="DivTasinmazBlokIsim">Sorgu Tipleri</div>
    <div style="clear:both"></div>
        <table class="malikTasinmazTable">
	        <tr>
              <td></td>
                <td><asp:Button ID="Button1" runat="server"  class="butons getirico" 
                Text="ID İle Tüzel Kişi Getir" onclick="Button1_Click" /></td>
	          <td></td>
               <td><asp:Button ID="Button2" runat="server"  class="butons getirico" 
                Text="Tüzel Kişi Getir" onclick="Button2_Click" /></td>
             </tr>
        </table>
        
        <div style="clear:both"></div>

   </div>

   <div id="divGetirTuzelKisiBilgiIDden" runat="server" class="DivTasinmazIslemleriBloklar">
    <div class="DivTasinmazBlokIsim">ID Bilgisi İle Tüzel Kişi Getir</div>
    <div style="clear:both"></div>
    <div class="srgtipgitsol">       
            <table>
	            <tr>
                    <td><asp:Label ID="Label1" runat="server" Text="TüzelKisiID"></asp:Label></td>
	                <td>:</td>
                    <td><asp:TextBox ID="txtTuzelKisiID" runat="server" class="textboxs"></asp:TextBox></td>
                    <td><asp:Button ID="btnTuzelKisiID" runat="server" class="butons sorguico" 
                    Text="Sorgula" onclick="btnTuzelKisiID_Click"  />
                    </td>
	            </tr>
            </table>
  </div>
<div class="srgtipgit">
   <asp:Button ID="lnkSorguTiplerineGit" class="butons gerico" runat="server" Text="Sorgu Tiplerine Git" onclick="lnkSorguTiplerineGit_Click" />
</div>
<div style="clear:both"></div>
</div>

<div id="divGetirTuzelKisiBilgi" runat="server" class="DivTasinmazIslemleriBloklar">

    <div class="DivTasinmazBlokIsim">Tüzel Kişi Bilgisi İle Tüzel Kişi Getir</div>
<div class="srgtipgituzel">
   <asp:Button ID="lnkSorguTiplerineGit1" class="butons gerico" runat="server" Text="Sorgu Tiplerine Git" onclick="lnkSorguTiplerineGit1_Click" Width="205"/>
</div>
<div style="clear:both"></div>

        <div class="TuzelKisiTableSolDiv">
                <table>
	                <tr>
                        <td><asp:Label ID="lblAktifMi" runat="server" Text="Aktif Mi"></asp:Label></td>
	                    <td>:</td>
                        <td><asp:DropDownList ID="ddlTapuBolumDurum" class="dropdownlists" runat="server" Width="205px" TabIndex="10">
                        <asp:ListItem Value="sec">Seçiniz..</asp:ListItem>
                        <asp:ListItem Value="0">Tümü</asp:ListItem>
                        <asp:ListItem Value="2">Aktif</asp:ListItem>
                        <asp:ListItem Value="3">Pasif</asp:ListItem>
                </asp:DropDownList></td>
	                </tr>
	                <tr>
	                   <td><asp:Label ID="lblBolgeTip" runat="server" Text="BölgeTip"></asp:Label></td>
	                   <td>:</td>
                       <td><asp:DropDownList ID="ddlBolgeTip" class="dropdownlists" runat="server" Width="205px" TabIndex="11">
                        <asp:ListItem Value="sec">Seçiniz..</asp:ListItem>
                        <asp:ListItem Value="0">Tüm Türkiye</asp:ListItem>
                        <asp:ListItem Value="1">İl</asp:ListItem>
                        <asp:ListItem Value="2">İlçe</asp:ListItem>
                        <asp:ListItem Value="3">Kurum</asp:ListItem>
                        <asp:ListItem Value="4">Mahalle</asp:ListItem>
                    </asp:DropDownList></td>
	                </tr>
	                <tr>
	                  <td></td>
	                  <td></td>
                      <td></td>
	                </tr>
                </table>
        </div>

        <div class="TuzelKisiTableOrtaDiv">
                <table >
	                <tr>
                        <td><asp:Label ID="lblBölgeID" runat="server" Text="BölgeID"></asp:Label></td>
	                    <td>:</td>
                        <td><asp:TextBox ID="txtBolgeID" class="textboxs" runat="server" TabIndex="12"></asp:TextBox></td>
	                </tr>
	                <tr>
	                    <td></td>
	                    <td></td>
	                    <td></td>
	                </tr>
	                <tr>
                       <td></td>
                       <td></td>
	                   <td><asp:Button ID="btnTuzelKisiGetir" runat="server" class="butons sorguico" TabIndex="5"
                        Text="Sorgula" onclick="btnTuzelKisiGetir_Click" Width="200" />
                        </td>
	                </tr>
                </table>
        </div>

        <div class="TuzelKisiTableSagDiv">
                <table> 
	                <tr>
		                <td><asp:Label ID="lblAdi" runat="server" Text="Adi"></asp:Label></td>
		                <td>:</td>
		                <td><asp:TextBox ID="txtAd" runat="server" class="textboxs" TabIndex="2"></asp:TextBox></td>
	                </tr>
	                <tr>
		                <td><asp:Label ID="lblSicil" runat="server" Text="Sicil No"></asp:Label></td>
		                <td>:</td>
		                <td><asp:TextBox ID="txtSicilNo" runat="server" class="textboxs" TabIndex="3"></asp:TextBox></td>
	                </tr>
	                <tr>
		                <td><asp:Label ID="lblVergi" runat="server" Text="Vergi No"></asp:Label></td>
		                <td>:</td>
		                <td><asp:TextBox ID="txtVergiNo" runat="server" class="textboxs" TabIndex="4"></asp:TextBox></td>
	                </tr>
                </table>
        </div>

<div style="clear:both"></div>

   </div>

   <div id="divgvTuzelKisi" runat="server" class="DivTasinmazIslemleriBloklar">
  
       <div  class="DivBlokIsim">Tüzel Kişiler</div> 

       <div class="DivExcell">
           <asp:Button ID="btnTuzelKisiExceleYaz" runat="server" class="butons excelli" OnClick="btnTuzelKisiExceleYaz_Click" TabIndex="9" Text="Excele Yaz" />
       </div>
       
       <div class="DivGrid">
                  <asp:GridView ID="gvTuzelKisi" runat="server" CssClass="grids" AllowPaging="True"
                    AutoGenerateColumns="False"   DataKeyNames="TuzelKisiID"  
                    OnPageIndexChanging="gvTuzelKisi_PageIndexChanging" OnRowCreated="gvTuzelKisi_RowCreated"
                    OnRowDataBound="gvTuzelKisi_RowDataBound">
                    <Columns>
                        <asp:CommandField HeaderText=" Seçim " SelectText="Seç " 
                            ShowSelectButton="True" Visible="False" />

                        <asp:TemplateField HeaderText="Seç">
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBoxTuzelKisiBilgi" runat="server">
                                </asp:CheckBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="TüzelKişiID" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="TuzelKisiID" runat="server" Text='<%# Eval("TuzelKisiID") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Ad">
                            <ItemTemplate>
                                <asp:Label ID="Ad" runat="server" Text='<%# Eval("Ad") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Vergi No">
                            <ItemTemplate>
                                <asp:Label ID="VergiNo" runat="server" Text='<%# Eval("VergiNo") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Sicil No">
                            <ItemTemplate>
                                <asp:Label ID="SicilNo" runat="server" Text='<%# Eval("SicilNo") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tüzel Kişi Tip">
                            <ItemTemplate>
                                <asp:Label ID="TuzelKisiTipAd" runat="server" Text='<%# Eval("TuzelKisiTip.Ad") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                          <asp:TemplateField HeaderText="Aktif Mi">
                            <ItemTemplate>
                                <asp:Label ID="AktifMi" runat="server" Text='<%# Eval("AktifMi") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Y. TemsilciMi">
                            <ItemTemplate>
                                <asp:Label ID="YabanciTemsilciMi" runat="server" Text='<%# Eval("YabanciTemsilciMi") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Y. SermayeliMi">
                            <ItemTemplate>
                                <asp:Label ID="YabanciSermayeliMi" runat="server" Text='<%# Eval("YabanciSermayeliMi") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                          <asp:TemplateField HeaderText="Ülke Ad">
                            <ItemTemplate>
                                <asp:Label ID="UlkeAd" runat="server" Text='<%# Eval("Ulke.Ad") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>

                    </Columns>
                      <FooterStyle CssClass="gridsFooter"/>
                        <HeaderStyle  CssClass="gridsHeader"/>
                        <PagerStyle CssClass="gridsPager"/>
                        <RowStyle CssClass="gridsTextColor" />
                        <SelectedRowStyle CssClass="selectedRows"/>
                </asp:GridView>
       </div>

       <div class="btn">
              
          <asp:Button ID="btnRehinGetir" runat="server" class="butons getirico" TabIndex="13"
            Text="Rehin Getir" OnClick="btnRehinGetir_Click" /><br />
          <asp:RadioButton ID="rbRehinAktif" runat="server" AutoPostBack="True" 
                    OnCheckedChanged="rbRehinAktif_CheckedChanged" Text="Aktif" Checked="True" />
          <asp:RadioButton ID="rbRehinPasif" runat="server" AutoPostBack="True" 
                    OnCheckedChanged="rbRehinPasif_CheckedChanged" Text="Pasif" />
          <asp:RadioButton ID="rbRehinHepsi" runat="server" AutoPostBack="True" 
                    OnCheckedChanged="rbRehinHepsi_CheckedChanged" Text="Hepsi" />

       </div>
 
<div class="srgtipgit">
   <asp:Button ID="lnkSorguTiplerineGit2" class="butons gerico" runat="server" Text="Sorgu Tiplerine Git" onclick="lnkSorguTiplerineGit2_Click"/>
</div>
<div style="clear:both"></div>

   </div>

   <div id="divgvRehin" runat="server" class="DivTasinmazIslemleriBloklar">
   
      <div class="DivBlokIsim">Rehinler</div>
      
      <div class="DivExcell">
           <asp:Button ID="btnTuzelKisiRehinExceleYaz" runat="server" class="butons excelli"  TabIndex="9" Text="Excele Yaz"/>
      </div>

      <div class="DivGrid">
          <asp:GridView ID="gvRehin" CssClass="grids" runat="server" AllowPaging="True" DataKeyNames="RehinBilgiID"
                OnPageIndexChanging="gvRehin_PageIndexChanging" 
                OnRowCreated="gvRehin_RowCreated" AutoGenerateColumns="False"
                OnRowDataBound="gvRehin_RowDataBound">
                <Columns>
                    <asp:CommandField HeaderText=" Seçim " ShowSelectButton="True" SelectText="Seç "
                        Visible="False" />
                        <asp:BoundField DataField="RehinBilgiID" HeaderText="RehinBilgiID" ItemStyle-Width="150px"
                            Visible="false">
                            <ItemStyle Width="150px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Rehin Miktar">
                            <ItemTemplate>
                                <asp:Label ID="RehinMiktar" runat="server" Text='<%# Eval("RehinMiktar") %>'>
                                </asp:Label>
                            </ItemTemplate>
                       
                        </asp:TemplateField>
                       
                           <asp:TemplateField HeaderText="Kredi Miktar">
                            <itemtemplate>
                                        <asp:Label ID="KrediMiktar" runat="server" Text='<%# Eval("KrediMiktar") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                                       </asp:TemplateField>
                            <asp:TemplateField HeaderText="Vade">
                                <itemtemplate>
                                        <asp:Label ID="Vade" runat="server" Text='<%# Eval("Vade") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText="Para Birimi">
                                <itemtemplate>
                                        <asp:Label ID="DovizAdi" runat="server" Text='<%# Eval("Doviz.Ad") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Faiz">
                                <itemtemplate>
                                        <asp:Label ID="Faiz" runat="server" Text='<%# Eval("Faiz") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Rehin Tipi">
                                <itemtemplate>
                                        <asp:Label ID="RehinTip" runat="server" Text='<%# Eval("RehinTip") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Kredi Türü">
                                <itemtemplate>
                                        <asp:Label ID="KrediTur" runat="server" Text='<%# Eval("KrediTur") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Müteselsil Mi">
                                <itemtemplate>
                                        <asp:Label ID="MuteselsilMi" runat="server" Text='<%# Eval("MuteselsilMi") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Aktif Mi">
                                <itemtemplate>
                                        <asp:Label ID="TapuBolumDurum" runat="server" Text='<%# Eval("TapuBolumDurum") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Şartlar">
                                <itemtemplate>
                                        <asp:Label ID="Sartlar" runat="server" Text='<%# Eval("Sartlar") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Açıklama">
                                <itemtemplate>
                                        <asp:Label ID="Aciklama" runat="server" Text='<%# Eval("Aciklama") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tesis İşlemID" Visible="False">
                                <itemtemplate>
                                        <asp:Label ID="TesisIslemIslemBilgiID" runat="server" Text='<%# Eval("TesisIslem.IslemBilgiID") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tesis İşlem Adı">
                                <itemtemplate>
                                        <asp:Label ID="TesisIslemIslemTanimAd" runat="server" Text='<%# Eval("TesisIslem.IslemTanimAd") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tesis İşlem Başlama Şekli Adı" Visible="False">
                                <itemtemplate>
                                        <asp:Label ID="TesisIslemBaslamaSekilAd" runat="server" Text='<%# Eval("TesisIslem.BaslamaSekilAd") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tesis İşlem YevmiyeID" Visible="False">
                                <itemtemplate>
                                        <asp:Label ID="TesisIslemYevmiyeYevmiyeBilgiID" runat="server" Text='<%# Eval("TesisIslem.Yevmiye.YevmiyeBilgiID") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tesis Yevmiye No">
                                <itemtemplate>
                                        <asp:Label ID="TesisIslemYevmiyeYevmiyeNo" runat="server" Text='<%# Eval("TesisIslem.Yevmiye.YevmiyeNo") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tesis Yevmiye Tarih">
                                <itemtemplate>
                                        <asp:Label ID="TesisIslemYevmiyeTarih" runat="server" Text='<%# Eval("TesisIslem.Yevmiye.Tarih","{0:dd/MM/yyyy}") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tesis Yevmiye Kurum">
                                <itemtemplate>
                                        <asp:Label ID="TesisIslemYevmiyeKurum" runat="server" Text='<%# Eval("TesisIslem.Yevmiye.Kurum") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Terkin İşlemID" Visible="False">
                                <itemtemplate>
                                        <asp:Label ID="TerkinIslemIslemBilgiID" runat="server" Text='<%# Eval("TerkinIslem.IslemBilgiID") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Terkin İşlem Adı">
                                <itemtemplate>
                                        <asp:Label ID="TerkinIslemIslemTanimAd" runat="server" Text='<%# Eval("TerkinIslem.IslemTanimAd") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Terkin İşlem Başlama Şekli Adı" Visible="False">
                                <itemtemplate>
                                        <asp:Label ID="TerkinIslemBaslamaSekilAd" runat="server" Text='<%# Eval("TerkinIslem.BaslamaSekilAd") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Terkin İşlem YevmiyeID" Visible="False">
                                <itemtemplate>
                                        <asp:Label ID="TerkinIslemYevmiyeYevmiyeBilgiID" runat="server" Text='<%# Eval("TerkinIslem.Yevmiye.YevmiyeBilgiID") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Terkin Yevmiye No">
                                <itemtemplate>
                                        <asp:Label ID="TerkinIslemYevmiyeYevmiyeNo" runat="server" Text='<%# Eval("TerkinIslem.Yevmiye.YevmiyeNo") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Terkin Yevmiye Tarih">
                                <itemtemplate>
                                        <asp:Label ID="TerkinIslemYevmiyeTarih" runat="server" Text='<%# Eval("TerkinIslem.Yevmiye.Tarih","{0:dd/MM/yyyy}") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Terkin Yevmiye Kurum">
                                <itemtemplate>
                                        <asp:Label ID="TerkinIslemYevmiyeKurum" runat="server" Text='<%# Eval("TerkinIslem.Yevmiye.Kurum") %>'>
                                        </asp:Label>
                                    </itemtemplate>
                            </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="gridsHeader" />
                <PagerStyle CssClass="gridsPager" />
                <RowStyle CssClass="gridsTextColor" />
                <SelectedRowStyle CssClass="selectedRows" />
          </asp:GridView>
 
      </div>

      <div style="clear:both"></div>
 
    </div>
 
  </form>
</asp:Content>
